package com.example.securitydemo2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.securitydemo2.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    /***
     * 根据用户id查询所有的角色
     */
    List<Role> findRoleListByUserId(Long userId);
}